package DBLayer;

/**
 * IFDBSupplier.java
 * @author Anders Mellon Skov Hermansen
 * @version 21. Marts 2012
 */
import ModelLayer.*;
import java.util.ArrayList;

public interface IFDBSupplier 
{
	    public ArrayList<Supplier> getAllSupplier(boolean retriveAssociation);
	    public Supplier findSupplier(int suplid, boolean retriveAssociation);
	    public Supplier searchSupplierId(int id, boolean retriveAssociation);
	    public Supplier searchSupplierName(String name, boolean retriveAssociation);
	    public Supplier searchSupplierAddress(String address, boolean retriveAssociation);
	    public Supplier searchSupplierCountry(String country, boolean retriveAssociation);
	    public Supplier searchSupplierEmail(String email, boolean retrieveAssociation);
	    public Supplier searchSupplierPhone(int phone, boolean retriveAssociation);
	    public int insertSupplier(Supplier supl);
	    public int updateSupplier(Supplier supl);
	    public int delete(int id);
}